<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TTabButton类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_tab_button-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TTabButton类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TTabButton 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_tab_button.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a60ffe28ce7bb73524608a88e85efba61"><td class="memItemLeft" align="right" valign="top"><a id="a60ffe28ce7bb73524608a88e85efba61"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TTabButton</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a60ffe28ce7bb73524608a88e85efba61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6da4e757b4bce4c59ebe1147b211cf13"><td class="memItemLeft" align="right" valign="top"><a id="a6da4e757b4bce4c59ebe1147b211cf13"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TTabButton</b> (const tab_button_t *nativeObj)</td></tr>
<tr class="separator:a6da4e757b4bce4c59ebe1147b211cf13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a826af2098b7e20413db6c0c0024d97e8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#a826af2098b7e20413db6c0c0024d97e8">SetValue</a> (bool value)</td></tr>
<tr class="separator:a826af2098b7e20413db6c0c0024d97e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab87a195422618ab05158b5c5409c1086"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#ab87a195422618ab05158b5c5409c1086">SetIcon</a> (const char *name)</td></tr>
<tr class="separator:ab87a195422618ab05158b5c5409c1086"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a38eb2a6e28449eaf17492c5ea9d54d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#a2a38eb2a6e28449eaf17492c5ea9d54d">SetActiveIcon</a> (const char *name)</td></tr>
<tr class="separator:a2a38eb2a6e28449eaf17492c5ea9d54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a908449bbbeab881aac3f26620ca27579"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#a908449bbbeab881aac3f26620ca27579">SetLoadUi</a> (const char *name)</td></tr>
<tr class="separator:a908449bbbeab881aac3f26620ca27579"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd5a7a28733d5a551217b3cdf91cc786"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#acd5a7a28733d5a551217b3cdf91cc786">GetValue</a> () const</td></tr>
<tr class="separator:acd5a7a28733d5a551217b3cdf91cc786"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad89e693b9989e9137635514c0d2390d0"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#ad89e693b9989e9137635514c0d2390d0">GetLoadUi</a> () const</td></tr>
<tr class="separator:ad89e693b9989e9137635514c0d2390d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc2f3075571a5b881cb57d13a8efed42"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#acc2f3075571a5b881cb57d13a8efed42">GetActiveIcon</a> () const</td></tr>
<tr class="separator:acc2f3075571a5b881cb57d13a8efed42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5332c689af512132b9925467d67f43fd"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#a5332c689af512132b9925467d67f43fd">GetIcon</a> () const</td></tr>
<tr class="separator:a5332c689af512132b9925467d67f43fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab283879397c4ca3ec3945c6343711a82"><td class="memItemLeft" align="right" valign="top"><a id="ab283879397c4ca3ec3945c6343711a82"></a>
static <a class="el" href="class_t_tab_button.html">TTabButton</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:ab283879397c4ca3ec3945c6343711a82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65e0ccd2cacd1308f861aec99da39d77"><td class="memItemLeft" align="right" valign="top"><a id="a65e0ccd2cacd1308f861aec99da39d77"></a>
static <a class="el" href="class_t_tab_button.html">TTabButton</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a65e0ccd2cacd1308f861aec99da39d77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc04c6abc5d436ea07291aa33a561c3e"><td class="memItemLeft" align="right" valign="top"><a id="abc04c6abc5d436ea07291aa33a561c3e"></a>
static <a class="el" href="class_t_tab_button.html">TTabButton</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:abc04c6abc5d436ea07291aa33a561c3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad74268046b81274a3defa581f9b9b139"><td class="memItemLeft" align="right" valign="top"><a id="ad74268046b81274a3defa581f9b9b139"></a>
static <a class="el" href="class_t_tab_button.html">TTabButton</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:ad74268046b81274a3defa581f9b9b139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a036f974a9ac686ba5908c6a434efb3d2"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_tab_button.html#a036f974a9ac686ba5908c6a434efb3d2">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a036f974a9ac686ba5908c6a434efb3d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>标签按钮控件。</p>
<p>标签按钮有点类似单选按钮，但点击标签按钮之后会自动切换当前的标签页。</p>
<p>tab_button_t是widget\_t的子类控件，widget_t的函数均适用于tab_button_t控件。</p>
<p>在xml中使用"tab\_button"标签创建标签按钮控件。如：</p>
<div class="fragment"><div class="line">*<span class="comment">&lt;!-- tab_button_view_page1.xml --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">view</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">label</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;60&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;page1&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;close&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:100&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;40&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Close&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">view</span>&gt;</div>
</div><!-- fragment --><div class="fragment"><div class="line">*<span class="comment">&lt;!-- tab_button dynamic load UI --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">pages</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;pages&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;70%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">pages</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;40&quot;</span> <span class="keyword">auto_hide_scroll_bar</span>=<span class="stringliteral">&quot;true&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;page1&quot;</span> <span class="keyword">load_ui</span>=<span class="stringliteral">&quot;tab_button_view_page1&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;true&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;page2&quot;</span> <span class="keyword">load_ui</span>=<span class="stringliteral">&quot;tab_button_view_page2&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;page3&quot;</span> <span class="keyword">load_ui</span>=<span class="stringliteral">&quot;tab_button_view_page3&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_bar_d</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_view</span>&gt;</div>
</div><!-- fragment --><div class="fragment"><div class="line">*<span class="comment">&lt;!-- tab_button static load UI --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">tab_button_group</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;90%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">compact</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;General&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Network&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;true&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Security&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">tab_button_group</span>&gt;</div>
</div><!-- fragment --><p>标签按钮一般放在标签按钮分组中，布局由标签按钮分组控件决定，不需要指定自己的布局参数和坐标。</p>
<blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/ui/">tab control</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">tab_button</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>  <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#d0d0d0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over</span>       <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#e0e0e0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal_of_active</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed_of_active</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over_of_active</span>       <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">tab_button</span>&gt;</div>
</div><!-- fragment --> </div><h2 class="groupheader">成员函数说明</h2>
<a id="a036f974a9ac686ba5908c6a434efb3d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a036f974a9ac686ba5908c6a434efb3d2">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TTabButton::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建tab_button对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="acc2f3075571a5b881cb57d13a8efed42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc2f3075571a5b881cb57d13a8efed42">&#9670;&nbsp;</a></span>GetActiveIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTabButton::GetActiveIcon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>当前项的图标的名称。 </p>

</div>
</div>
<a id="a5332c689af512132b9925467d67f43fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5332c689af512132b9925467d67f43fd">&#9670;&nbsp;</a></span>GetIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTabButton::GetIcon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>非当前项的图标的名称。 </p>

</div>
</div>
<a id="ad89e693b9989e9137635514c0d2390d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad89e693b9989e9137635514c0d2390d0">&#9670;&nbsp;</a></span>GetLoadUi()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTabButton::GetLoadUi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>激活后加载的UI名字。 </p>

</div>
</div>
<a id="acd5a7a28733d5a551217b3cdf91cc786"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd5a7a28733d5a551217b3cdf91cc786">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TTabButton::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>值。 </p>

</div>
</div>
<a id="a2a38eb2a6e28449eaf17492c5ea9d54d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a38eb2a6e28449eaf17492c5ea9d54d">&#9670;&nbsp;</a></span>SetActiveIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTabButton::SetActiveIcon </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置控件的active图标。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>当前项的图标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab87a195422618ab05158b5c5409c1086"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab87a195422618ab05158b5c5409c1086">&#9670;&nbsp;</a></span>SetIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTabButton::SetIcon </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置控件的图标。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>当前项的图标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a908449bbbeab881aac3f26620ca27579"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a908449bbbeab881aac3f26620ca27579">&#9670;&nbsp;</a></span>SetLoadUi()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTabButton::SetLoadUi </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置控件动态加载显示UI。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>动态加载UI的资源名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a826af2098b7e20413db6c0c0024d97e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a826af2098b7e20413db6c0c0024d97e8">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTabButton::SetValue </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为当前标签。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>是否为当前标签。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
